package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.demo.bean.Comment;
import com.demo.vo.CommentVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CommentMapper extends BaseMapper<Comment> {
	int add(List<Comment> articleList);

	int deleteList(List<Long> ids);

	IPage<Comment> selectArticlePage(@Param("page") Page<Comment> page);

	IPage<CommentVo> selectCommentVoPage(@Param("page") Page<CommentVo> page);
}
